package com.qidian.mes.sys.service.impl;

import com.qidian.mes.sys.mapper.DictDataMapper;
import com.qidian.mes.sys.service.DictDataService;
import com.qidian.mes.util.pojo.MESResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

/**
 * @Author 戴着假发的程序员
 * @Company 起点编程
 * @Time 2023/10/25 15:03
 * @Description
 */
@Service
public class DictDataServiceimpl implements DictDataService {

    @Value("${server.port}")
    private String port;// 服务的端口号

    @Autowired
    private DictDataMapper dictDataMapper;
    @Override
    public MESResult list(Long dictId) {
        return MESResult.ok(port,dictDataMapper.list(dictId));
    }
}
